﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Hotel.Models.DataAccess;
using Hotel.Models.Entity;

namespace Hotel.Models.Services
{
    public class ServiceService
    {
        public static List<Service> GetListService()
        {
            return DAService.GetListService(0);
        }

        public static Service GetServiceDetail(int serviceID)
        {
            return DAService.GetListService(serviceID)[0];
        }

        public static bool DeleteService(int serviceID)
        {
            return DAService.DeleteService(serviceID);
        }
        //Insert : isUpdate = false
        //Update : isUpdate = true
        public static bool SaveService(Service service, bool isUpdate)
        {
            return DAService.SaveService(service, isUpdate);
        }

        public static List<Service> GetListServicebyGruopID(int groupSrvID)
        {
            return DAService.GetListServiceByGroupID(groupSrvID);
        }

    }
}